<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 90px;
            height: 24px;
            text-align: center;
            text-shadow: 1px 1px 1px pink, -1px -1px 1px gold;
            border: 1px solid #000;
            /* 过渡 */
            transition: all 800ms;
        }

        .box:hover {
            /* 边框阴影 */
            box-shadow: 1px 1px 3px red,
         -1px -1px 3px red;
        }
    </style>
</head>

<body>
    <div class="box">
        我是文字
    </div>
</body>

</html>